package com.bjtu.boatmq.common.protocol;
/**
 * common模块-请求类型代码
 */
public class RequestCode {
    /* Client-Broker的请求  10-19*/
    public static final int SEND_MESSAGE = 10;  // 发送消息请求
    public static final int PULL_MESSAGE = 11;  // 拉取消息请求
    public static final int COMMIT_CONSUME_OFFSET = 12; //提交消费偏移量

    /* Client-Router的请求 20-29*/

    /* Broker-Router的请求 30-39*/
    public static final int REGISTERED_BROKER = 30;     // 注册Broker节点
    public static final int LONG_LINK = 31;             // 建立长链接
    public static final int HEART_BEAT = 32;            // 心跳请求
    public static final int FITCH_BROKER_METADATA = 33; // 请求元数据
}